﻿using System.Collections.Generic;
using System.IO;
using System.Linq;

namespace PhotoKiosk.Model.Device
{
    public class CDRom : IDevice
    {
        public static bool IsConnected()
        {
            foreach (DriveInfo drive in DriveInfo.GetDrives().Where(d => d.DriveType == DriveType.CDRom))
            {
                if (drive.IsReady)
                {
                    return true;
                }
            }
            return false;
        }

        public static bool IsExist()
        {
            List<DriveInfo> di = DriveInfo.GetDrives().Where(d => d.DriveType == DriveType.CDRom).ToList<DriveInfo>();
            if (di.Count == 0)
            {
                return false;
            }
            return true;
        }

        public bool Connect()
        {
            throw new System.NotImplementedException();
        }

        public bool CopyFile(string i_Link, string i_to)
        {
            throw new System.NotImplementedException();
        }

        public void LoadAllPhotos(System.Collections.Generic.List<string> i_FileExtensions)
        {
            throw new System.NotImplementedException();
        }

        public System.Collections.Generic.List<Photo> AllPhotos()
        {
            throw new System.NotImplementedException();
        }
    }
}
